#include "CircularRotationDeviceController.h"
#include "Arduino.h"
CircularRotationDeviceController::CircularRotationDeviceController(IMotorHAL* HAL)
{
	this->HAL = HAL;
}


int CircularRotationDeviceController::start(int snelheid, Direction dir)
{
    this->dir = dir;
    speed = snelheid;
	HAL->setMotorDirection(dir);
	HAL->setMotorSpeed(speed);
	return 1;
}

int CircularRotationDeviceController::stop()
{
	speed = 0;
	HAL->setMotorSpeed(0);
	return 0;
}
